<template>
  <div>
    <span>{{obj}}</span>
    <button @click="$emit('input',value+1)">+</button>
    <span>{{value>=0 ?value:0}}</span>
    <button @click="$emit('input',value-1)" :disabled='value===0'>-</button>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    obj:{
        type :String,
        required :true, 
    },
    value:{
        type:Number,
        required :true,
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
  },
};
</script>

<style scoped></style>
